<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
  <div class="container">
    <% if(!user){ %>
    <h1>欢迎来到Microblog</h1>
    <p>Microblog 是一个基于Node.js的微博系统。</p>
    <p>
    	<a class="btn btn-primary btn-lg" role="button" href="/login">登录</a>
    	<a class="btn btn-default btn-lg" role="button" href="/reg">立即注册 &raquo;</a>
    </p>
    <% }else{ %>
    <% include say %>
    <% } %>
  </div>
</div>
<div class="container">
<% include posts %>

</div>

<script>
    $(function(){
      $(".nav li a[href='/']").parent().attr("class","active");
    });
</script>